#include "DblStack.h"
int main()
{
    DblStack s;
    DblInit(&s);
    int i;
    for (i = 0; i < MAXSIZE + 1; i++)
    {
        HeadPush(&s, i);
        printf("%d\n", GetHead(&s));
        TailPush(&s, -i);
        printf("%d\n", GetTail(&s));
    }
    Destroy(&s);
    return 0;
}
